package com.jsu.springboot_crop.service;

import com.jsu.springboot_crop.entity.Purchase;
import com.jsu.springboot_crop.model.MyPurchase;

import java.util.List;

/**
 * @Author Humura
 * @Date 2023/8/26 11:46
 * @Version 1.0
 */
public interface PurchaseService {
    //添加订单
    void add(Purchase purchase);
    //根据用户名获取订单
    Purchase selectNewPurchaseId(String ownName);
    List<MyPurchase> selectByPurchaseType();
}
